package yu.vert.callback;

import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import yu.vert.callback.ComputeCallBack;
import yu.vert.callback.TestCallBack;

/**
 * 自定义回调
 */
public class CallMain {

    public static void main(String[] args) {
        new TestCallBack().compute("aa", new ComputeCallBack() {
            public void success() {
                System.out.println("success");
            }
            public void fail() {
                System.out.println("fail");
            }
        });
    }
}
